package com.entity;

import java.io.Serializable;

/**
 * buildingstructure
 * @author 
 */
public class Buildingstructure implements Serializable {
    private Integer bsid;

    private String bsname;

    private static final long serialVersionUID = 1L;

    public Integer getBsid() {
        return bsid;
    }

    public void setBsid(Integer bsid) {
        this.bsid = bsid;
    }

    public String getBsname() {
        return bsname;
    }

    public void setBsname(String bsname) {
        this.bsname = bsname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Buildingstructure other = (Buildingstructure) that;
        return (this.getBsid() == null ? other.getBsid() == null : this.getBsid().equals(other.getBsid()))
            && (this.getBsname() == null ? other.getBsname() == null : this.getBsname().equals(other.getBsname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBsid() == null) ? 0 : getBsid().hashCode());
        result = prime * result + ((getBsname() == null) ? 0 : getBsname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bsid=").append(bsid);
        sb.append(", bsname=").append(bsname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}